package com.kancy.spring.sample.bean;

import com.kancy.spring.context.annotation.Autowired;
import com.kancy.spring.context.annotation.Component;
import com.kancy.spring.log.Logger;
import com.kancy.spring.log.LoggerFactory;

/**
 * BeanA
 *
 * @author kancy
 * @date 2020/2/18 12:12
 */

@Component
public class BeanA {
    private static final Logger log = LoggerFactory.getLogger(BeanB.class);

    private String content;

    @Autowired
    private BeanB beanB;

    public BeanA(){}

    public BeanA(String content) {
        this.content = content;
    }

    public void print() {
        log.info("[BeanA].beanB = %s", beanB.toString());
    }
}
